import { Bk_Junior_College } from 'src/junior_college/bk_junior_college.entity';
import { Bk_Undergraduate } from 'src/undergraduate/bk_undergraduate.entity';
import { Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Bk_Discipline {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    major_category_code: number;

    @Column()
    discipline_name: string;

    @ManyToOne(() => Bk_Junior_College, junior_college => junior_college.discipline)
    junior_college: Bk_Junior_College;

    // @OneToMany(() => Bk_Undergraduate, discipline => discipline.discipline)
    // undergraduate: Bk_Undergraduate[]
}